package com.csdj.dao;

import com.csdj.entity.Account;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountMapper {
    /**
     * 登录
     * @param cardNo
     * @param passWord
     * @return
     */
    int login(@Param("cardNo")String cardNo,@Param("passWord")String passWord);


    /**
     * 查看余额
     * @param cardNo
     * @return
     */
    double seeBanlance(@Param("cardNo")String cardNo);

    Account getAccount(@Param("cardNo")String cardNo);

    /**
     * 转入
     * @param money
     * @param cardNo
     */
    void cunMoney(@Param("money")double money,@Param("cardNo")String cardNo);

    /**
     * 转出
     * @param money
     * @param cardNo
     */
    void quMoney(@Param("money")double money,@Param("cardNo")String cardNo);
}
